package com.tstudy.laoshibang.mode;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;


/**
 * 搜索历史model类
* @CopyRight tstudy.com.cn
* @author wuyahui
* @E-mail wuyahui0124505@163.com
* @version 1.0.0
* @Date 2015年6月3日 上午11:27:02
 */
@DatabaseTable
public class SearchHistory implements BaseModel {
	public static final String TYPE_ACTIVE = "active";
	public static final String TYPE_WEIKE = "weike";
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@DatabaseField(id=true)
	public String key;
	@DatabaseField
	public String name;//	名称	Varchar(64)
	@DatabaseField
	public long updateTime;//更新时间
	@DatabaseField
	public String type;//搜索类型
	
	public SearchHistory(){
		
	}
	public SearchHistory(String name,long updateTime,String type){
		this.name = name;
		this.updateTime = updateTime;
		this.type = type;
		this.key = name+type;
	}
	
}
